package com.atty.dms.service;

import com.atty.dms.dao.entity.UserInterestDO;
import com.atty.dms.dto.req.BatchUserInterestCreateReqDTO;
import com.atty.dms.dto.req.SingleUserInterestUpdateReqDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * ClassName:UserInterestService
 * Package:com.atty.dms.service
 * Description:
 *
 * @Author:tony
 * @Create :2025/4/19 9:11
 * @Version :1.0
 */
public interface UserInterestService extends IService<UserInterestDO> {
    /**
     * 根据用户ID获取兴趣名称列表
     *
     * @param userId 用户ID
     * @return 兴趣名称列表
     */
    List<String> getInterestNamesByUserId(Long userId);


    /**
     * 创建用户兴趣
     * @param userId
     * @param interestId
     */
    void createUserInterest(Long userId, Long interestId);

    /**
     * 批量创建用户兴趣
     * @param requestParam
     */
    void batchCreateUserInterests(BatchUserInterestCreateReqDTO requestParam);

    /**
     * 删除单个用户单个兴趣
     * @param userId
     * @param interestId
     */
    void deleteUserInterest(Long userId, Long interestId);

    /**
     * 删除单个用户多个兴趣
     * @param requestParam
     */
    void deleteUserInterests(BatchUserInterestCreateReqDTO requestParam);

    /**
     * 更新单个用户单个兴趣
     * @param requestParam
     */
    void updateUserInterest(SingleUserInterestUpdateReqDTO requestParam);

    /**
     * 根据兴趣ID获取用户名列表
     * @param interestId
     * @return
     */
    List<String> getUsernamesByInterestId(Long interestId);



}
